import request from '@/utils/request';

export function login(data) {
  return request({
    url: '/Teacher/Login',
    method: 'post',
    data
  });
}

export function getTeacherList(data) {
  return request({
    url: '/Teacher/GetTeacherList',
    method: 'post',
    data
  });
}

export function getTeacherInfo(data) {
  return request({
    url: '/Teacher/GetTeacherInfo?teacherDataID=' + data,
    method: 'get'
  });
}

export function saveTeacherInfo(data) {
  return request({
    url: '/Teacher/SaveTeacherInfo',
    method: 'post',
    data
  });

}

export function registerTeacherInfo(data) {
  return request({
    url: '/Teacher/RegisterTeacherInfo',
    method: 'post',
    data
  });
}


